package com.greenx.hello.hclass;

public class HClassFields {

	private String name = "";
	private String address = "";

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		HClassFields hClassFields = new HClassFields();
		System.out.println("|" + hClassFields.getName() + "|"
				+ hClassFields.getAddress());
		updateFields(hClassFields);
		System.out.println("|" + hClassFields.getName() + "|"
				+ hClassFields.getAddress());
	}

	private static void updateFields(HClassFields hClassFields) {
		hClassFields.setName("Stephen");
		hClassFields.setAddress("Sh");
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address
	 *            the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

}
